{% extends "base.html" %}
{% load i18n %}

{% block pageContent %}

{% if user %}
	<fieldset>
		<input id="embedCode" type="text" size="60" value="{{ embedCode }}" onclick="javascript:$('#embedCode').select();"/>
		{% if False %}<button id="copyEmbedCode">{% trans "Copy Embed Code" %}</button>{% endif %}
	</fieldset>
{% else %}
	<p class="red">{% trans "You must login using your Google account to access this feature!" %}</p> 
	<p><a href="{{ loginURL }}">{% trans "Login your Google account" %}</a></p>
{% endif %}

<div align="center">
		{{ embedCode|safe }}
</div>

{% if False %}
<script type="text/javascript">
<!--
$.clipboardReady(function(){
	$("#copyEmbedCode").click(function(){
		$.clipboard( $("#embedCode").value() );
		alert("{% trans "The embed code has been copied to your clipboard." %}"); 
		return false;
	});
});
-->
</script>
{% endif %}

{% endblock pageContent %}